﻿@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@section header{

}
<script>
    // 是否开启刷新记忆tab功能
    //var is_remember = false;
</script>
<body class="index">
    <!-- 顶部开始 -->
    <div class="container">
        <div class="logo">
            <a href="#">管理后台</a>
        </div>
        <div class="left_open">
            <a><i title="展开左侧栏" class="iconfont">&#xe699;</i></a>
        </div>
        <ul class="layui-nav right" lay-filter="">
            <li class="layui-nav-item">
                <a href="javascript:;">@ViewBag.UserName</a>
                <dl class="layui-nav-child">
                    <!-- 二级菜单 -->
                    @*<dd>
                            <a href="javascript:;" id="updatePwd">修改密码</a>
                        </dd>
                        <dd>
                            <a href="./login.html">退出</a>
                        </dd>*@
                    @*<dd>
                        <a href="javascript:;" id="updatePwd">
                            <i class="iconfont icon-shezhi1" data-icon="icon-shezhi1"></i>
                            <cite>修改密码</cite>
                        </a>
                    </dd>*@
                    <dd>
                        <a href="javascript:;" class="signOut" onclick="loginOut()">
                            <i class="iconfont icon-loginout"></i>
                            <cite>退出</cite>
                        </a>
                    </dd>
                </dl>
            </li>
            @*<li class="layui-nav-item to-index">
                    <a href="/">前台首页</a>
                </li>*@
        </ul>
    </div>
    <!-- 顶部结束 -->
    <!-- 中部开始 -->
    <!-- 左侧菜单开始 -->
    <div class="left-nav">
        <div id="side-nav">
            <ul id="nav">
                <li>
                    <a onclick="xadmin.add_tab('计划任务','/Schedule/Index')">
                        <i class="iconfont">&#xe6a7;</i>
                        <cite>计划任务</cite>
                    </a>
                </li>
            </ul>
        </div>
    </div>
    <!-- <div class="x-slide_left"></div> -->
    <!-- 左侧菜单结束 -->
    <!-- 右侧主体开始 -->
    <div class="page-content">
        <div class="layui-tab tab" lay-filter="xbs_tab" lay-allowclose="false">
            <ul class="layui-tab-title">
                @*<li class="home">
                    <i class="layui-icon">&#xe68e;</i>我的桌面
                </li>*@
            </ul>
            <div class="layui-unselect layui-form-select layui-form-selected" id="tab_right">
                <dl>
                    <dd data-type="this">关闭当前</dd>
                    <dd data-type="other">关闭其它</dd>
                    <dd data-type="all">关闭全部</dd>
                </dl>
            </div>
            <div class="layui-tab-content">
                @*<div class="layui-tab-item layui-show">
                    <iframe src='/Admin/Welcome' frameborder="0" scrolling="yes" class="x-iframe"></iframe>
                </div>*@
            </div>
            <div id="tab_show"></div>
        </div>
    </div>
    <div class="page-content-bg"></div>
    <style id="theme_style"></style>
    <!-- 右侧主体结束 -->
    <!-- 中部结束 -->
</body>


<script>

    layui.use(['element'], function () {
        $("#updatePwd").click(function () {
            common.open("修改密码", "400px", "380px", common.versionUrl("/User/UpdatePwd"), 0, function () { });
        })


    });


    function loginOut() {
        request.ajax({
            type: "post",
            url: "/Login/LoginOut",
            success: function (result) {
                if (result.success) {
                    window.location.href = "/Login/Login";
                } else {
                    common.errorMsg(result.message);
                }
            }
        });
    }
</script>
